package demo1109.demo05;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/11/9 17:09
 */
public class Test {
    public static void main(String[] args) {
        AAAPublic aaaPublic = new AAAPublic();
        User u1 = new User("张三");
        User u2 = new User("李四");
        User u3 = new User("王五");

        aaaPublic.guanzhu(u1);
        aaaPublic.guanzhu(u2);
        aaaPublic.guanzhu(u3);

        Teacher teacher = new Teacher();
        aaaPublic.guanzhu(teacher);

        aaaPublic.setMsg("你好");

        aaaPublic.qunfa();

        aaaPublic.quguan(u3);

        aaaPublic.qunfa();
    }
}
